<!DOCTYPE html>
<html xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <meta name="description" content="A fully featured admin theme which can be used to build CRM, CMS, etc.">
    <meta name="author" content="Coderthemes">
	
	<!-- jQuery  -->
    <script type="text/javascript" src="/static/plugins/jquery/jquery-3.6.0.min.js"></script>
	
	<!-- layui  -->
	<link rel="stylesheet" href="/static/plugins/layui/2.7.6/css/layui.css" media="all" />
	<script src="/static/plugins/layui/2.7.6/layui.js" charset="utf-8"></script>
	
	<!-- form style -->
	<link rel="stylesheet" href="/static/admin/css/mini-ease-edit.css">
	<!-- form JS -->
	<script src="/static/admin/js/form.js" charset="utf-8"></script>
	
	<!-- iconfont -->
	<link rel="stylesheet" href="/static/css/icon/iconfont.css" media="all" />
</head>

<body>

<div class="layui-layout layui-layout-admin">
	<form class="layui-form" id="formId" method="post" action="/api/inter/thrOperateCompanyInfo/editSupper">
		<div class="layui-header layui-inline" style="margin-left: 10px;">
			<button type="button" class="layui-btn layui-btn-normal" lay-submit lay-filter="formSubmit"><i class="iconfont icon-save"></i>保存</button>
		</div>
		
		<input type="hidden" name="id" th:value="${dto.id}">
		
		<div class="layui-body">
			<div class="layui-form-item">
				<div class="layui-inline layui-col-xs4 margin_r0">
					<div>
						<label class="layui-form-label">运营公司编码：</label>
						<div class="layui-input-block">
							<input type="text" name="vGsBm" th:value="${dto.vGsBm}" class="layui-input layui-disabled" readonly >
						</div>
					</div>
				</div>
				<div class="layui-inline layui-col-xs4 margin_r0">
					<div>
						<label class="layui-form-label">运营公司简称：</label>
						<div class="layui-input-block">
							<input type="text" name="vGsJc" th:value="${dto.vGsJc}" class="layui-input layui-disabled" readonly >
						</div>
					</div>
				</div>
			</div>
			<div class="layui-form-item">
				<div class="layui-inline layui-col-xs4 margin_r0">
					<div>
						<label class="layui-form-label"><font class="f_red">*</font>上级运营公司：</label>
						<div class="layui-input-block margin_l_90" style="display: flex;">
							<input th:data-id-field-value="vGsBmP" type="hidden" name="vGsBmP" th:value="${dto.vGsBmP}">
							<input th:data-id-field-name="vGsBmP" type="text" autocomplete="off" class="layui-input" th:value="${dto.vGsJcP}" style="border: solid 0.1px; border-color: #B5B5B5; width:90%;" readonly="readonly">
							<i class="layui-icon layui-icon-close-fill" style="height: 30px; line-height: 30px;" title="清空此条件" onclick="this.previousSibling.previousSibling.value = '';this.previousSibling.previousSibling.previousSibling.previousSibling.value = '';"></i>
							<i style="position: relative; right: 40px; height: 30px; line-height: 30px;" class="layui-icon layui-icon-more" th:onclick="showModalForDiy('vGsBmP', 'THR_OperateCompanyApply', 'vGsBm', 'nameLinked')"></i>
						</div>
					</div>
				</div>
			</div>
			<div class="layui-form-item">
				<div class="layui-inline layui-col-xs4 margin_r0">
					<div>
						<label class="layui-form-label"><font class="f_red">*</font>登录密码：</label>
						<div class="layui-input-block">
							<input type="text" name="password" value="" autocomplete="off" placeholder="请输入"  class="layui-input" lay-verify="required"  >
						</div>
					</div>
				</div>
			</div>
		</div>
	</form>
</div>
	<script>
	$(function () {
		layui.use(['form'], function(){
			var form = layui.form;
			
			// 表单提交，共用同一个
			form.on('submit(formSubmit)', function(data){
				var indexOfLoading = layer.load(1, {
					shade: [0.5,'#000000'] //0.1透明度的白色背景
				});
				$.post(data.form.action, data.field, function(res){
					if (res.code == 0) {
						layer.msg('操作成功');
						setTimeout(function(){
							window.location.reload();
						}, 1000);
					} else {
						layer.close(indexOfLoading);
						layer.msg(res.msg);
					}
				});
				return false;
			});
		});
	});
	</script>
</body>
</html>